<script id="list-tpl" type="text/html"
        data-params='{"url":"/education/admin/message","dataName":"messageData","pageid":"#page", "method":"post", "data":""}'>
    <table id="example" class="layui-table lay-even" data-name="messageData" data-tplid="list-tpl">
        <thead>
            <tr>
                <th width="30"><input type="checkbox" id="checkall" data-name="checkbox" lay-filter="check"
                                      lay-skin="primary"></th>
                <th>主题</th>
                <th>内容</th>
                <th>发送时间</th>
                <th>收件人</th>
                <th width="200">操作</th>
            </tr>
        </thead>
        <tbody>
            {{# layui.each(d.list, function(index, item){ }}
            <tr>
                <td><input type="checkbox" name="checkbox" value="{{ item.id}}" lay-skin="primary"></td>
               <!-- <td>{{# if(String(item.numbers).indexOf('news-type') > 0){ }} 新闻类别
                    {{#  } else if(String(item.numbers).indexOf('question-type') > 0){  }} 咨询类别{{#  } }}</td>-->
                <td>{{ item.title||'' }}</td>
                <td>{{ item.content }}</td>
                <td>{{ item.create_time}} </td>
                <td>{{ item.to_userid == null ? '全体' : (item.to_username||'')}}</td>
                <td>
                <button class="layui-btn layui-btn-mini" onclick="viewReadDetail('{{item.id}}','{{item.title}}');">
                    <i class="iconfont">&#xe653;</i>签收记录
                </button>
                </td>
            </tr>
            {{# }); }}
        </tbody>

    </table>
</script>